package cn.openbiotoken;

/**
 * NOT_KNOWN: the sex of a PERSON has not been recorded.
 * NOT_SPECIFIED: indeterminate, i.e. unable to be classified as either male or female.
 */
public enum Gender {

    NOT_KNOWN(0), MALE(1), FEMALE(2), NOT_SPECIFIED(9);

    Gender(int code) {
        this.code = (byte)code;
    }

    private final byte code;

    public byte getCode() {
        return code;
    }
}
